﻿using AutoMapper;
using Management.API.DTOs.Management;
using Management.Models.BOMBasicInformation;

namespace Management.API
{
    public class MapingProfile : Profile
    {
        public MapingProfile()
        {
            //显示列表
            CreateMap<BasicInformation, GetBasicInformationDTO>();
            //新增
            CreateMap<AddBasicInformationDTO, BasicInformation>().ReverseMap();
            //批量新增
            //修改
            CreateMap<BasicInformation, UpdateBasicInformationDTO>().ReverseMap();

        }
    }
}
